package com.dm.yyxr.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dm.yyxr.pojo.Community;
import com.dm.yyxr.pojo.dto.CommunityDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommunityMapper extends BaseMapper<Community> {
    //从数据库中获取指定区域（由区域ID指定）下的社区信息(街道名称和用户数量)
    List<CommunityDto> getCommunities(Integer id,int pageNo);
    Integer getCommunitiesCount(Integer id);
}
